#include <stdio.h>
#include <string.h>

int main(void)
{
	//先将学生姓名和年龄保存到内存，再将他们打印输出
	int age=18;
	//tom
	char name[]={'t','o','m','\0'};//结尾\0变成字符串
	printf("%ld\n",sizeof(name));
	printf("%s\n",name);
	int nums[]={1,2,3,4,5};	
	printf("%ld\n",sizeof(nums)/sizeof(int));
	char name1[]="tom";
	//底层占4个字节，显示3个
	printf("%ld\n",sizeof(name1)/sizeof(char));
	char name2[10]="tom";
	printf("%ld\n",strlen(name2));

}
